/**
 * @(#)SimulatorTaskDaoImpl.java 2017年02月24日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import org.jsbd.boss.dao.ISimulatorTaskDao;
import org.jsbd.boss.domian.channel.SimulatorTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

/**
 * 
 * 模拟器任务Dao
 * @author <a href="mailto:zhouchao@xingbook.com" >周超</a>
 * @version 1.0.0
 */
@Repository("simulatorTaskDao")
public class SimulatorTaskDaoImpl extends CrackLogBaseDao implements ISimulatorTaskDao {
	public static final Logger LOGGER = LoggerFactory.getLogger(SimulatorTaskDaoImpl.class);

	@Override
	public void save(SimulatorTask task) {
		super.insert("qy_channel_simulator_task_log.insert_qy_channel_simulator_task_log", task);
	}

	@Override
	public SimulatorTask getTaskByTaskId(String taskId) {
		return (SimulatorTask)super.queryForObject("qy_channel_simulator_task_log.get_qy_channel_simulator_task_log_by_taskid", taskId);
	}

	
}
